from rest_framework.authentication import BaseAuthentication


class CustomAuthentication(BaseAuthentication):
    def authenticate(self, request):
        # 在这里实现自定义的身份验证逻辑
        pass
